function tau=generateTau(Hp, rC, lastY, setPointStep)
tau = zeros(Hp * rC, 1);

for i=1:rC
    [startPointer endPointer] = getPointers(i, Hp);
    
    tau(startPointer:endPointer) = setPointStep(i) * ones(Hp, 1);
end
end